#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/4/26 下午3:03
# @Author  : zhangzhen
# @Site    : 
# @File    : ioutils.py
# @Software: PyCharm
import sys
try:
    reload(sys)
    sys.setdefaultencoding('utf-8')
except:
    pass


class ioutils():

    @staticmethod  # 静态方法
    def write2loacl(corpus, path):  # 将list/set 保存本地
        fl = open(path, 'w+')
        for line in corpus:
            fl.write(line+'\n')
        fl.close()
